@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

set(BOUT_USE_SIGNAL @BOUT_USE_SIGNAL@)
set(BOUT_USE_COLOR @BOUT_USE_COLOR@)
set(BOUT_USE_TRACK @BOUT_USE_TRACK@)
set(BOUT_USE_SIGFPE @BOUT_USE_SIGFPE@)
set(BOUT_USE_BACKTRACE @BOUT_USE_BACKTRACE@)
set(BOUT_USE_OPENMP @BOUT_USE_OPENMP@)
set(BOUT_HAS_OUTPUT_DEBUG @BOUT_HAS_OUTPUT_DEBUG@)
set(BOUT_CHECK_LEVEL @BOUT_CHECK_LEVEL@)

set(BOUT_HAS_PVODE @BOUT_HAS_PVODE@)
set(BOUT_HAS_NETCDF @BOUT_HAS_NETCDF@)
set(BOUT_HAS_FFTW @BOUT_HAS_FFTW@)
set(BOUT_HAS_LAPACK @BOUT_HAS_LAPACK@)
set(BOUT_HAS_PETSC @BOUT_HAS_PETSC@)
set(BOUT_HAS_SLEPC @BOUT_HAS_SLEPC@)
set(BOUT_HAS_SCOREP @BOUT_HAS_SCOREP@)
set(BOUT_HAS_SUNDIALS @BOUT_HAS_SUNDIALS@)
set(BOUT_HAS_GETTEXT @BOUT_HAS_GETTEXT@)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

if(EXISTS "@PETSC_DIR@")
  set(PETSC_DIR "@PETSC_DIR@")
endif()
if(EXISTS "@SLEPC_DIR@")
  set(SLEPC_DIR "@SLEPC_DIR@")
endif()
if(EXISTS "@SUNDIALS_ROOT@")
  set(SUNDIALS_ROOT "@SUNDIALS_ROOT@")
endif()
if(EXISTS "@FFTW_ROOT@")
  set(FFTW_ROOT "@FFTW_ROOT@")
endif()
if(EXISTS "@LAPACK_ROOT@")
  set(LAPACK_ROOT "@LAPACK_ROOT@")
endif()
if(EXISTS "@ScoreP_ROOT@")
  set(ScoreP_ROOT "@ScoreP_ROOT@")
endif()
if(EXISTS "@NetCDF_ROOT@")
  set(NetCDF_ROOT "@NetCDF_ROOT@")
endif()

set(mpark_variant_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../lib/cmake/mpark_variant")
set(MPIEXEC_EXECUTABLE @MPIEXEC_EXECUTABLE@)

find_dependency(MPI @MPI_CXX_VERSION@ EXACT)
if (BOUT_USE_OPENMP)
  find_dependency(OpenMP)
endif()
if (BOUT_HAS_NETCDF)
  find_dependency(NetCDF @NetCDF_VERSION@ EXACT)
endif()
if (BOUT_HAS_FFTW)
  find_dependency(FFTW)
endif()
if (BOUT_HAS_LAPACK)
  find_dependency(LAPACK)
endif()
if (BOUT_HAS_PETSC)
  find_dependency(PETSc @PETSC_VERSION@ EXACT)
endif()
if (BOUT_HAS_SUNDIALS)
  find_dependency(SUNDIALS @SUNDIALS_VERSION@ EXACT)
endif()
if (BOUT_HAS_GETTEXT)
  find_dependency(Gettext)
  find_dependency(Intl)
endif()
find_dependency(mpark_variant)
if (BOUT_HAS_SLEPC)
  find_dependency(SLEPc @SLEPC_VERSION@ EXACT)
endif()
if (BOUT_HAS_SCOREP)
  find_dependency(ScoreP)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/bout++Targets.cmake")
